Builder

Builder for WindowInsetsCompat.

Constructors

Link copied to clipboard
constructor()
Creates a builder where all insets are initially consumed.
constructor(@NonNull insets: @NonNull WindowInsetsCompat)
Creates a builder where all insets are initialized from WindowInsetsCompat.

Functions

Link copied to clipboard
@NonNull
open fun build(): @NonNull WindowInsetsCompat
Builds a WindowInsetsCompat instance.
Link copied to clipboard
@NonNull
open fun setDisplayCutout(@Nullable displayCutout: @Nullable DisplayCutoutCompat): @NonNull WindowInsetsCompat.Builder
Sets the display cutout.
Link copied to clipboard
@NonNull
open fun setInsets(typeMask: Int, @NonNull insets: @NonNull Insets): @NonNull WindowInsetsCompat.Builder
Sets the insets of a specific window type in pixels.
Link copied to clipboard
@NonNull
open fun setInsetsIgnoringVisibility(typeMask: Int, @NonNull insets: @NonNull Insets): @NonNull WindowInsetsCompat.Builder
Sets the insets a specific window type in pixels, while ignoring its visibility state.
Link copied to clipboard
@NonNull
open fun setMandatorySystemGestureInsets(@NonNull insets: @NonNull Insets): @NonNull WindowInsetsCompat.Builder
Sets mandatory system gesture insets in pixels.
Link copied to clipboard
@NonNull
open fun setPrivacyIndicatorBounds(@Nullable bounds: @Nullable Rect): @NonNull WindowInsetsCompat.Builder
Sets the bounds of the system privacy indicator.
Link copied to clipboard
@NonNull
open fun setRoundedCorner(position: Int, @Nullable roundedCorner: @Nullable RoundedCornerCompat): @NonNull WindowInsetsCompat.Builder
Sets the rounded corner of given position.
Link copied to clipboard
@NonNull
open fun setStableInsets(@NonNull insets: @NonNull Insets): @NonNull WindowInsetsCompat.Builder
Sets the stable insets in pixels.
Link copied to clipboard
@NonNull
open fun setSystemGestureInsets(@NonNull insets: @NonNull Insets): @NonNull WindowInsetsCompat.Builder
Sets system gesture insets in pixels.
Link copied to clipboard
@NonNull
open fun setSystemWindowInsets(@NonNull insets: @NonNull Insets): @NonNull WindowInsetsCompat.Builder
Sets system window insets in pixels.
Link copied to clipboard
@NonNull
open fun setTappableElementInsets(@NonNull insets: @NonNull Insets): @NonNull WindowInsetsCompat.Builder
Sets tappable element insets in pixels.
Link copied to clipboard
@NonNull
open fun setVisible(typeMask: Int, visible: Boolean): @NonNull WindowInsetsCompat.Builder
Sets whether windows that can cause insets are currently visible on screen.